package com.example.loginmybatis.service;

import com.example.loginmybatis.model.AuthUser;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * Copyright © 2021 @author Shu
 * 上海华泉信息科技有限公司
 * https://021hqit.com
 * All rights reserved.
 */
public interface IAuthUserService extends IBaseService<AuthUser> {

    AuthUser findByUsername(String username);

    List<AuthUser> findByRole(String role);

    Page<AuthUser> list(String name, String type, int page, int size);
}
